import request from '@/utils/request'

// 查询教师列表
export function listTeacher(query) {
    return request({
        url: '/biz/teacher/list',
        method: 'get',
        params: query
    })
}

//新增教师信息

export function addTeacher(data) {
    return request({
        url: '/biz/teacher',
        method: 'post',
        data,
    })
}

//根据id查询

// 查询教师详细
export function getTeacher(rid) {
    return request({
        url: '/biz/teacher/' + rid,
        method: 'get'
    })
}

// 删除题库
export function delTeacher(rid) {
    return request({
        url: '/biz/teacher/' + rid,
        method: 'delete'
    })
}


// 修改老师信息
export function upDateTeacher(data) {
    return request({
        url: '/biz/teacher',
        method: 'put',
        data,
    })
}